package com.ruoyi.specific.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户积分业务对象 improving_user_points
 *
 * @author ruoyi
 * @date 2024-01-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImprovingUserPointsBo extends BaseEntity {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { EditGroup.class })
    private Long userId;

    /**
     * 用户工号
     */
    @NotNull(message = "用户工号不能为空", groups = { EditGroup.class })
    private String userName;


    /**
     * 可用积分
     */
    @NotNull(message = "可用积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal available;

    /**
     * 总积分
     */
    @NotNull(message = "总积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal total;


}
